﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SAllFightAttribute extends IMessageBase
    {
        public var uid:String;
        public var baseFight:SFightAttribute;
        public var extraFightAttribute:SFightAttribute;
        public var addPercentAttribute:SFightAttributeAddPercent;
        public const _type:int = 3027;
        public static var _regist:SAllFightAttribute = new SAllFightAttribute(true);

        public function SAllFightAttribute(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SAllFightAttribute();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.uid);
            this.baseFight.__write(param1);
            this.extraFightAttribute.__write(param1);
            this.addPercentAttribute.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.uid = param1.readString();
            this.baseFight = new SFightAttribute();
            this.baseFight.__read(param1);
            this.extraFightAttribute = new SFightAttribute();
            this.extraFightAttribute.__read(param1);
            this.addPercentAttribute = new SFightAttributeAddPercent();
            this.addPercentAttribute.__read(param1);
            return;
        }// end function

    }
}
